package com.example.yskjproject.model;

import java.io.Serializable;
import java.util.List;

public class VerityVersionModel implements Serializable {

    @com.fasterxml.jackson.annotation.JsonProperty("new_app")
    private NewAppDTO new_app;
    @com.fasterxml.jackson.annotation.JsonProperty("old_apps")
    private List<OldAppsDTO> old_apps;

    public NewAppDTO getNewApp() {
        return new_app;
    }

    public void setNewApp(NewAppDTO newApp) {
        this.new_app = newApp;
    }

    public List<OldAppsDTO> getOldApps() {
        return old_apps;
    }

    public void setOldApps(List<OldAppsDTO> oldApps) {
        this.old_apps = oldApps;
    }

    public static class NewAppDTO {
        @com.fasterxml.jackson.annotation.JsonProperty("version")
        private String version;
        @com.fasterxml.jackson.annotation.JsonProperty("type")
        private int type;
        @com.fasterxml.jackson.annotation.JsonProperty("link")
        private String link;
        @com.fasterxml.jackson.annotation.JsonProperty("state")
        private int state;

        public String getVersion() {
            return version;
        }

        public void setVersion(String version) {
            this.version = version;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getLink() {
            return link;
        }

        public void setLink(String link) {
            this.link = link;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }
    }

    public static class OldAppsDTO {
        @com.fasterxml.jackson.annotation.JsonProperty("version")
        private String version;
        @com.fasterxml.jackson.annotation.JsonProperty("type")
        private int type;
        @com.fasterxml.jackson.annotation.JsonProperty("link")
        private String link;
        @com.fasterxml.jackson.annotation.JsonProperty("state")
        private int state;

        public String getVersion() {
            return version;
        }

        public void setVersion(String version) {
            this.version = version;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getLink() {
            return link;
        }

        public void setLink(String link) {
            this.link = link;
        }

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }
    }
}
